mountoperation-x11: Fix copy/paste thinko
authorBenjamin Otte <otte@redhat.com>
Thu, 5 Mar 2020 05:14:58 +0000 (06:14 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 Mar 2020 06:05:48 +0000 (07:05 +0100)
gtk/gtkmountoperation-x11.c

index 268354f31bc746416a2712ea170e16d8a73b5066..678d54c64af67e4b1ea6fa5bf97764a9ffe7dd90 100644 (file)
@@ -882,7 +882,7 @@ get_name_for_window_with_pid (GtkMountOperationLookupContext *context,
 
           endp = NULL;
           windowid_window = (Window) g_ascii_strtoll (windowid_value, &endp, 10);
-          if (endp != NULL || *endp == '\0')
+          if (endp != NULL && *endp == '\0')
             {
               window = windowid_window;
             }